import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * This class makes reference to the bullets of the enemies.
 * 
 * @author (Arturo Aaron Rios Obregon) 
 * @version (25 june 2013)
 */
public class BulletEnemy extends Bala
{
    /**
     * Contructor
     */
    public BulletEnemy()
    {
        super(10);
    }
    
    /**
     * move and remove the bullets.
     */
    public void act() 
    {
        if(getY()<getWorld().getHeight()-1)
            mueve();
        else
            getWorld().removeObject(this);
            // Add your action code here.
    }
    
    /**
     * This method makes move the Enemy bullets.
     */
    public void mueve()
    {
        int x=getX(), y= getY();
        setLocation(x,y+2);
    }
}
